home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.2 / MPW / Interfaces / PInterfaces / DiskInit.p < prev    next >
Text File  |  1991-04-17  |  1KB  |  58 lines

  1. {
  2. Created: Sunday, January 6, 1991 at 10:30 PM
  3.     DiskInit.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.     1985-1989
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT DiskInit;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingDiskInit}
  21. {$SETC UsingDiskInit := 1}
  22.  
  23. {$I+}
  24. {$SETC DiskInitIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$SETC UsingIncludes := DiskInitIncludes}
  30.  
  31. TYPE
  32. HFSDefaults = RECORD
  33.     sigWord: PACKED ARRAY [0..1] OF Byte;   { signature word}
  34.     abSize: LONGINT;                        { allocation block size in bytes}
  35.     clpSize: LONGINT;                       { clump size in bytes}
  36.     nxFreeFN: LONGINT;                      { next free file number}
  37.     btClpSize: LONGINT;                     { B-Tree clump size in bytes}
  38.     rsrv1: INTEGER;                         { reserved}
  39.     rsrv2: INTEGER;                         { reserved}
  40.     rsrv3: INTEGER;                         { reserved}
  41.     END;
  42.  
  43.  
  44. PROCEDURE DILoad;
  45. PROCEDURE DIUnload;
  46. FUNCTION DIBadMount(where: Point;evtMessage: LONGINT): INTEGER;
  47. FUNCTION DIFormat(drvNum: INTEGER): OSErr;
  48. FUNCTION DIVerify(drvNum: INTEGER): OSErr;
  49. FUNCTION DIZero(drvNum: INTEGER;volName: Str255): OSErr;
  50.  
  51.  
  52. {$ENDC}    { UsingDiskInit }
  53.  
  54. {$IFC NOT UsingIncludes}
  55.     END.
  56. {$ENDC}
  57.  
  58.